extends TextureProgress

func _ready():
	
	pass

func _process(delta):
	$life.text = str(value)
	if value <=0:
		get_tree().current_scene.get_node("failed").show()
	pass

func _add(v):
	value += v
